% !TEX TS-program = lualatex
% !TEX encoding = UTF-8

% This is a simple template for a LuaLaTeX document using gregorio scores.

%\documentclass[11pt]{article} % use larger type; default would be 10pt
\documentclass[letterpaper,landscape,twocolumn,12pt]{memoir} % use larger type; default would be 10pt

% usual packages loading:
\usepackage{luatextra}
\usepackage{graphicx} % support the \includegraphics command and options
%\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
%\geometry{a4paper} % or letterpaper (US) or a5paper or....
\usepackage{gregoriotex} % for gregorio score inclusion
%\usepackage{fullpage} % to reduce the margins

% choose the language of the document here
\usepackage[latin]{babel}

% use the two following package for using normal TeX fonts
%\usepackage[T1]{fontenc}
\usepackage[utf8]{luainputenc}
\usepackage{fontspec}

\setlrmarginsandblock{20mm}{20mm}{*}
\setulmarginsandblock{20mm}{20mm}{*}
\setcolsepandrule{15mm}{1pt}
\pagestyle{plain}
\checkandfixthelayout

\makeatletter
\renewcommand{\@maketitle}{%
{\begin{center}\begin{huge}\textsc{\@title}\end{huge}\end{center}}
}
\makeatother

\newcommand{\chant}[2]{%
    \vskip 1em
    %\nopagebreak
    \noindent #1
    \vskip 0.3em

    \gresetfirstlineaboveinitial{\tiny\textsc{\textbf{II}}}{\tiny\textsc{\textbf{II}}}
    \includescore{#2}
}

% If you use usual TeX fonts, here is a starting point:
%\usepackage{times}
% to change the font to something better, you can install the kpfonts package (if not already installed). To do so
% go open the "TeX Live Manager" in the Menu Start->All Programs->TeX Live 2010
\setmainfont[Ligatures={Common,Rare,TeX},Numbers=OldStyle]{Linux Libertine O}

% here we begin the document
\begin{document}
\raggedbottom

% The title:
\title{``O Alleluia'' Verses for 17-24 December}
\maketitle

% Here we set the space around the initial.
% Please report to http://home.gna.org/gregorio/gregoriotex/details for more details and options
\setspaceafterinitial{2.2mm plus 0em minus 0em}
\setspacebeforeinitial{2.2mm plus 0em minus 0em}

% Here we set the initial font. Change 43 if you want a bigger initial.
\def\greinitialformat#1{%
{\fontsize{43}{43}\selectfont #1}%
}

% We set red lines here, comment it if you want black ones.
\redlines

\chant{Alleluia}{alleluia.gabc.tex}
{\tiny(or any other mode II Alleluia)}
\chant{17 December}{dec17.gabc.tex}
\chant{18 December}{dec18.gabc.tex}
\pagebreak
\chant{19 December}{dec19.gabc.tex}
\chant{20 December}{dec20.gabc.tex}
\chant{21 December}{dec21.gabc.tex}
\pagebreak
\chant{Alleluia}{alleluia.gabc.tex}
{\tiny(or any other mode II Alleluia)}
\chant{22/23 December}{dec22.gabc.tex}
\chant{24 December}{dec24.gabc.tex}
\pagebreak
\vspace*{\fill}
\centering\tiny
Excerpts from the \textit{Lectionary for Mass for Use in the Dioceses of the
United States of America, second typical edition} © 2001, 1998, 1997, 1986,
1970 Confraternity of Christian Doctrine, Inc., Washington, DC. Used with
permission. All rights reserved. No portion of this text may be reproduced by
any means without permission in writing from the copyright owner.
\vspace{1em}

Musical setting for the Alleluia verses is © 2014 Henry So, Jr., licensed
under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
License.
\newpage

\end{document}
